﻿using ilgolosone.DomainModel.Entities;

namespace ilgolosone.Persistence.NH.UserTypes
{
    /// <remarks>
    /// Presa dal <see cref="http://fabiomaulo.blogspot.com/2009/08/from-db-to-ram-wellknowinstancetype.html">Blog di Fabio Maulo</see>
    /// </remarks>
    public class TableLocationType : WellKnownInstanceType<TableLocation>
    {
        public TableLocationType()
            : base(new TableLocations(),
                   (e, k) => e.Id == k,
                   e => e.Id)
        { }
    }
}